package org.jeecg.modules.friends.user.param;

import lombok.Data;

/**
 * @author cold
 * @version 1.0
 * @data 2024/5/16 21:13
 */

@Data
public class HomePageUserRequest {

    private String userToken;

    private int cursor;

    private String gender;

    private Integer educationType;

    private Integer cityType;

    private Integer heightMin;

    private Integer heightMax;

    private Integer ageMin;

    private Integer ageMax;

    private String longitude;

    private String latitude;

    private Long userId;

    public boolean existCondition() {
        if (gender != null) {
            return true;
        }
        if (cityType != null) {
            return true;
        }
        if (heightMin != null) {
            return true;
        }
        if (heightMax != null) {
            return true;
        }
        if (ageMin != null) {
            return true;
        }
        if (ageMax != null) {
            return true;
        }
        return false;
    }
}
